package com.tpp.threat_perception_platform.pojo;

import java.util.Date;
import java.util.List;


/**
 * 
 * @TableName hotfix
 */
public class Hotfix {
    /**
     * 
     */
    private Integer id;
    /**
     * 
     */
    private String macAddress;

    /**
     * 
     */
    private String hotfixId;

    /**
     * 
     */
    private Date detectTime;

    public String getAiResult() {
        return aiResult;
    }

    public void setAiResult(String aiResult) {
        this.aiResult = aiResult;
    }

    private String aiResult;

    /**
     * 
     */
    private List<String> cveList; // 添加 cveList 属性

    // 省略 getter 和 setter 方法
    public List<String> getCveList() {
        return cveList;
    }

    public void setCveList(List<String> cveList) {
        this.cveList = cveList;
    }
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getMacAddress() {
        return macAddress;
    }

    /**
     * 
     */
    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    /**
     * 
     */
    public String getHotfixId() {
        return hotfixId;
    }

    /**
     * 
     */
    public void setHotfixId(String hotfixId) {
        this.hotfixId = hotfixId;
    }

    /**
     * 
     */
    public Date getDetectTime() {
        return detectTime;
    }

    /**
     * 
     */
    public void setDetectTime(Date detectTime) {
        this.detectTime = detectTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Hotfix other = (Hotfix) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMacAddress() == null ? other.getMacAddress() == null : this.getMacAddress().equals(other.getMacAddress()))
            && (this.getHotfixId() == null ? other.getHotfixId() == null : this.getHotfixId().equals(other.getHotfixId()))
            && (this.getDetectTime() == null ? other.getDetectTime() == null : this.getDetectTime().equals(other.getDetectTime()))
            && (this.getAiResult() == null ? other.getAiResult() == null : this.getAiResult().equals(other.getAiResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMacAddress() == null) ? 0 : getMacAddress().hashCode());
        result = prime * result + ((getHotfixId() == null) ? 0 : getHotfixId().hashCode());
        result = prime * result + ((getDetectTime() == null) ? 0 : getDetectTime().hashCode());
        result = prime * result + ((getAiResult() == null) ? 0 : getAiResult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", macAddress=").append(macAddress);
        sb.append(", hotfixId=").append(hotfixId);
        sb.append(", detectTime=").append(detectTime);
        sb.append(", aiResult=").append(aiResult);
        sb.append("]");
        return sb.toString();
    }
}